package mybag5;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		StudentList stu = new StudentList();
		Scanner input = new Scanner(System.in);
		System.out.println("------------学生管理系统------------");
		System.out.println("1,增加学生信息");
		System.out.println("2,根据学号删除学生");
		System.out.println("3,根学号修改学生");
		System.out.println("4,根据姓名模糊查询学生");
		System.out.println("5,退出系统");
		System.out.println("---------------------------------");
		System.out.println("请选择你的选择：（1~6)");
		int choose = input.nextInt();
		boolean flag = false;
		do {
			switch (choose) {
			case 1:
				stu.add();
				break;
			case 2:
				stu.remove();
				break;
			case 3:
				stu.update();
				break;
			case 4:
				stu.Search();
				break;
			case 5:
				stu.exist();
				flag = true;
				break;
			}
		} while (!flag);

	}
}
